using VRage;
using VRageMath;

namespace VRageRender.Messages
{
	public class MyRenderMessageSetInstanceBuffer : MyRenderMessageBase
	{
		public uint ID;

		public uint InstanceBufferId;

		public int InstanceStart;

		public int InstanceCount;

		/// <summary>
		/// Fill in only the relevant data. Data ouside of the specified range would not be used.
		/// </summary>
		public MyInstanceData[] InstanceData;

		public BoundingBox LocalAabb;

		public override MyRenderMessageType MessageClass => MyRenderMessageType.StateChangeOnce;

		public override MyRenderMessageEnum MessageType => MyRenderMessageEnum.SetInstanceBuffer;
	}
}
